package math.base;

/**
 * @author Saga
 *
 */
public class Axis2d {
    public Axis2d() {
        this.origin = new Point2d();
        this.direct = new Dir2d();
    }

    public Axis2d(final Point2d _origin, final Dir2d _direct) {
        this.origin = _origin;
        this.direct = _direct;
    }

    public final void setOrigin(final Point2d _origin) {
        this.origin = _origin;
    }

    public final Point2d getOrigin() {
        return this.origin;
    }

    public final void setDirect(final Dir2d _direct) {
        this.direct = _direct;
    }

    public final Dir2d getDirect() {
        return this.direct;
    }

    @Override
    public final Axis2d clone() {
        return new Axis2d(this.origin.clone(), this.direct.clone());
    }

    private Point2d origin;
    private Dir2d direct;
}
